module.exports = function(router){
	router.map({
		"/":{
			component(resolve){
				require(["../views/user/index.vue"] , resolve)
			}
		},
		"/articleDetails":{
			component(resolve){
				require(["../views/user/article-details.vue"], resolve)
			}
		},
		"/articleList":{
			component(resolve){
				require(["../components/user/article-list.vue"] , resolve)
			}
		},
		//搜索
		"/search":{
			component(resolve){
				require(["../views/user/search.vue"] , resolve)
			}
		}
	});
	router.beforeEach(function(){
		window.scrollTo(0,0);
	})
};
